package com.wang.mall.model;

import com.wang.mall.bean.SysMenu;
import com.wang.mall.bean.UmsMember;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

/**
 * 登陆成功的结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginResult {

    /**
     * 登陆成功的token ,
     */
    private String token;


    /**
     * 当前登录用户的菜单数据
     */
    private List<SysMenu> menus;

    /**
     * 当前登录的用户的权限数据
     */
    private List<SimpleGrantedAuthority> authorities;


    private UmsMember umsMember;


}
